package com.wry.cloud.controller;

import com.wry.cloud.service.OrderMainService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <h1>  <h1>
 *
 * @author 魏如元
 * @since 2022/9/12
 */
@RestController
@RequestMapping("order")
public class OrderMainController {

    @Resource
    private OrderMainService orderMainService;

    @GetMapping("nacos/{id}")
    public String getPayment(@PathVariable Long id){
        return orderMainService.getPayment(id);
    }
}
